function clearHeaderFooter(){
	//remove header
	//$('.ui-dialog-titlebar').hide();
	$('.ui-dialog-titlebar').attr({
		'class' : 'popup_header'
	});
	$(".popup_header").html("");
	$(".popup_header").remove();
}
function putclickoutsidebody(element){
	$('.ui-widget-overlay').bind('click',function(){
		$(element).dialog('close');
	})	
}